import request  from  '@/utils/request.js'

// 获取菜单数据
export const reqGetPermission = ()=>{
    return request({url: "/admin/acl/permission", method: 'get'})
}

// 保存菜单
export const reqSaveMenu = (data)=>{
    return request({url: "/admin/acl/permission/save", method: 'post', data})
}
// 更新菜单
export const reqUpdateMenu = (data)=>{
    return request({url: "/admin/acl/permission/update", method: 'put', data})
}

// 删除菜单
export const deleteMenu = (id)=>{
    return request({url: `/admin/acl/permission/remove/${id}`, method: 'delete'})
}